def method2():
    print 1


class A():
    def method(self):
        method2()

